package com.kb.service;


import com.fasterxml.jackson.core.JsonProcessingException;
import com.kb.common.ApiResponse;
import com.kb.entity.digikey.ProductData;
import com.kb.entity.digikey.QueryTO;
import com.kb.entity.digikey.RequestInfo;

import java.io.UnsupportedEncodingException;
import java.util.List;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ExecutionException;

public interface DigikeyService {
    String updateToken();

    CompletableFuture<List<ProductData>> getQuoteAsync(QueryTO to) throws JsonProcessingException, ExecutionException, InterruptedException;

    ApiResponse excuteMouser() throws UnsupportedEncodingException;

    ApiResponse excuteDigikey();

    ApiResponse excuteElement() throws UnsupportedEncodingException;

    ApiResponse excuteYunhan();

    ApiResponse excuteSHT();
}
